void main() {

  //--- turn off A/D inputs
  ADPCFG = 0xFFFF;
  LATB = 0;
  TRISB = 0;
  LATC = 0;
  TRISC = 0;
  LATD = 0;
  TRISD = 0;
  LATF = 0xFFFF;
  TRISF = 0;

  while(1) {
    //LATF = ~LATF;
//    LATB = ~LATB;
//    Delay_ms(1000);
//    LATB = ~LATB;
    LATC = ~LATC;
    Delay_ms(1000);
//    LATC = ~LATC;
//    LATD = ~LATD;
//    Delay_ms(1000);
    LATD = ~LATD;
    Delay_ms(1000);
    LATF = ~LATF;
    Delay_ms(1000);
  }
}//~!

